%%%-------------------------------------------------------------------
%%% @author wukai
%%% @copyright (C) 2020, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 29. 8月 2020 11:04 上午
%%%-------------------------------------------------------------------
-module(himq_server).
-behaviour(gen_server2).
-author("wukai").
-export(
[init/1,
  handle_call/3,
  handle_cast/2,
  handle_info/2,
  terminate/2,
  code_change/3]).

-record(state, {}).
init([]) ->
  register(?MODULE,self()),
  {ok, #state{},hibernate,{backoff,1000,1000,10000}}.

handle_call(_Request, _From, State) ->
  {reply, ok, State}.

handle_cast(_Request, State) ->
  hibernate(State).

handle_info(_Info, State) ->
  hibernate(State).

terminate(_Reason, _State) ->ok.

code_change(_OldVsn, State, _Extra) ->
  {ok, State}.
hibernate(State)->
  {noreply,State,hibernate}.
